package manong.serviceimpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import manong.beans.manager;
import manong.mapper.mapperManager;
import manong.service.managerService;

@Service @Transactional
public class managerServiceImpl implements managerService{
	@Resource 
	mapperManager managers;

	@Override
	public manager login(String username, String password) {
		
		return managers.login(username,password);
	}

	@Override
	public manager add_manager(manager manager) {
		// TODO Auto-generated method stub
		return managers.add_manager(manager);
	}

	@Override
	public int delete_manager(int id) {
		// TODO Auto-generated method stub
		return managers.delete_manager(id);
	}

	@Override
	public void update_manager(manager manager) {
		// TODO Auto-generated method stub
		managers.update_manager(manager);
	}

	@Override
	public int select_manager(int id) {
		// TODO Auto-generated method stub
		return managers.delete_manager(id);
	}

	@Override
	public List<manager> select_all() {
		// TODO Auto-generated method stub
		return managers.select_all();
	}
	
	
	
}
